#pragma once

#include <QWidget>
#include "ui_Note.h"
#include "BaseDlg.h"

enum NOTE_DLG_TYPE
{
	NOTE_DLG_TYPE_NOTE,
	NOTE_DLG_TYPE_INFO,
	NOTE_DLG_TYPE_WARN,
	NOTE_DLG_TYPE_ERROR,
	NOTE_DLG_TYPE_COUNT
};

class Note : public BaseDlg
{
	Q_OBJECT

public:
	Note(const QString& msg, NOTE_DLG_TYPE type = NOTE_DLG_TYPE_NOTE, QWidget* parent = nullptr);
	Note(const QString& title, const QString& msg, const QString& icon);
	~Note();
	static void NoteDlg(const QString& msg);
	static void InfoDlg(const QString& msg);
	static void WarnDlg(const QString& msg);
	static void ErrorDlg(const QString& msg);
private:
	Ui::Note ui;
};
